﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Studio7i.Dominio.Sala>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>CodSala</th>
            <th>Nombre</th>
            <th>Capacidad</th>
            <th>Caracteristicas</th>
            <th>Comentarios</th>
            <th>Local</th>
            
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Editar", new { Codigo = item.CodSala }) %> |
                <%: Html.ActionLink("Ver", "Ver", new { Codigo = item.CodSala })%> |
                <%: Html.ActionLink("Eliminar", "Eliminacion", new { Codigo = item.CodSala })%>
            </td>
            <td>
                <%: item.CodSala %>
            </td>
            <td>
                <%: item.Nombre %>
            </td>
            <td>
                <%: item.Capacidad %>
            </td>
            <td>
                <%: item.Caracteristicas %>
            </td>
            <td>
                <%: item.Comentarios %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Creacion") %>
    </p>

</asp:Content>

